<html>
<head>
  <title>新建唱片</title>
  <meta charset="UTF-8"/>
</head>
<body>
<h1>新建唱片</h1>
<form action="/albums" method="POST" enctype="multipart/form-data">
  <div>
    <input name="title" type="text" placeholder="标题"/>
  </div>
  <div>
    <input type="file" name="artwork" placeholder="海报" />
  </div>
  <div>
    <select name="artist_id" id="artist_id">
      <% @artists.each do |artist| %>
        <option value="<%= artist.id %>"><%= artist.name %></option>
      <% end %>
    </select>
  </div>
  <div>
    <textarea name="desc" id="desc" cols="30" rows="10" placeholder="desc"></textarea>
  </div>
  <div>
    <input type="submit" value="新建唱片" />
  </div>
</form>
</body>
</html>